<?php
class classname
{
    function __construct()
    {
        echo __METHOD__,"\n";
    }
}
function funcname()
{
    echo __FUNCTION__,"\n";
}
const constname = "global";

$a = 'classname';
$obj = new $a; // prints classname::__construct
$b = 'funcname';
$b(); // prints funcname
echo '<br>';
echo $b.'<br>';
echo constant('constname'), "\n".'<br>'; // prints global
echo constname;
echo '<br>';
var_dump(array(<<<EOD
foobar!
EOD
));
?>
